package org.idtem.utils.logger;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;




public class LoggerHelper {
	
	private static LoggerHelper _LoggerHelper;

	private static Logger loggerFreelingComponent = Logger.getLogger("org.idtem.component.freeling");
	private static Logger loggerIdentificadorComponent = Logger.getLogger("org.idtem.component.identificador");
	private static Logger loggerAlgoritmosComponent = Logger.getLogger("org.idtem.component.algoritmo");
	private static Logger loggerAnalisisSintacticoComponent = Logger.getLogger("org.idtem.component.analisissintactico");
	
	private LoggerHelper()
	{
		
	}
	
	public static LoggerHelper getInstance()
	{
		if (_LoggerHelper == null)
		{
			_LoggerHelper = new LoggerHelper();
			BasicConfigurator.configure();
			//PropertyConfigurator.configure("log4j.properties");
			
		}
		return _LoggerHelper;
	}
	
	
	public Logger getFreeling2ComponentLogguer()
	{
		return loggerFreelingComponent;
	}
	
	public Logger getIdentificadorComponentLogguer()
	{
		return loggerIdentificadorComponent;
	}
	
	public Logger getAlgoritmosComponentLogguer()
	{
		return loggerAlgoritmosComponent;
	}
	
	public Logger getAnalisisSintacticoLogguer()
	{
		return loggerAnalisisSintacticoComponent;
	}
	
}
